<!DOCTYPE html>
<html lang="zh-Hans">
  <link rel="stylesheet" href="./style.css" />
  <head>
    <meta charset="UTF-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0"
    />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>canvas画板</title>
  </head>
  <body>
    <canvas id="canvas" width="300" height="300"></canvas>
    <div id="acitons">
      <svg class="icon active" id="pencil">
        <use xlink:href="#icon-pencil"></use>
      </svg>
      <svg class="icon" id="pen">
        <use xlink:href="#icon-pen"></use>
      </svg>
      <svg class="icon" id="brush">
        <use xlink:href="#icon-brush"></use>
      </svg>
      <svg class="icon" id="eraser">
        <use xlink:href="#icon-eraser"></use>
      </svg>
      <svg class="icon" id="clear">
        <use xlink:href="#icon-clear"></use>
      </svg>
      <svg class="icon" id="download">
        <use xlink:href="#icon-download"></use>
      </svg>
    </div>
    <ol class="colors">
      <li id="black" class="black active"></li>
      <li id="red" class="red"></li>
      <li id="green" class="green"></li>
      <li id="blue" class="blue"></li>
    </ol>
  </body>
  <script src="./main.js"></script>
  <script src="https://at.alicdn.com/t/font_1092708_bfzk8h596a7.js"></script>
</html>
